<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function user(){}

        //如果new 一个user
       let u= new user();

        //父类相同
        console.log(user.prototype);
        console.log(u.__proto__);
       console.log(user.prototype == u.__proto__);

       let web={};
       console.log(web.__proto__);
     
    //    console.log(web.__proto__);
    //    console.log(Object.prototype);
    //这样创建的对象，没有原型
let user_obj=Object.create(null,{
    name:{
        value:"tw1"
    }
});
console.log(user_obj);
    
     
    </script>
</body>
</html>